<?php
$programs = $_SESSION['program'];
$subjects = $_SESSION['subjects'];
echo "<b>Status:</b><ul style='margin:0px'>";

// attendance

$session_nbNotYet = $_SESSION["session_nbNotYet"];

if ($session_nbNotYet==0) {
	echo "<li><span style='color:green'>All applicants attendance have been specified.</span></li>";
} else {
	echo "<li><span style='color:red'>".$session_nbNotYet." applicant(s) still have the status 'Not Yet' on their written exam attendance.</span></li>";
}

// marks in the system.
$session_nbNotFullyOk = $_SESSION['session_nbNotFullyOk'];
$session_nbFullyOk = $_SESSION['session_nbFullyOk'];
if ($session_nbNotFullyOk > 0){
        $nbNotFullyOkView = $session_nbNotFullyOk - 1;
	echo "<li><span style='color:red'>".$nbNotFullyOkView." applicant(s) who attend the exam do not have marks or only part of the marks in the system</span> (".$session_nbFullyOk." applicant(s) are OK)</li>";
}else{
	echo "<li><span style='color:green'>The ".$session_nbFullyOk." applicant(s) who attend the exam have all the marks in the system</span></li>";
}

// eligibility set

$session_nbEligibilityNotSet = $_SESSION['nbEligibilityNotSet'];

if ($session_nbEligibilityNotSet == 0)
	echo "<li><span style='color:green'>All applicants have their eligibility set for all programs</span></li>";
else
	echo "<li><span style='color:red'>".$session_nbEligibilityNotSet." applicant(s) do not have their eligibility set for all programs</span></li>";

// eligibility for each program

$session_var_s = $_SESSION['var_s'];
echo "<li>Eligibility status: ".$session_var_s."</li>";

echo "</ul>";
?>
